import request from '../utils/request';

export const Show = () => {
    return request({
        url: '/api/Good/OShow',
        method: 'get',
    });
};
export const Shows = () => {
    return request({
        url: '/api/Good/WShow',
        method: 'get',
    });
};
export const Add = model => {
    return request({
        url: '/api/Good/OAdd', model,
        method: 'post',
        data: model //post请求使用data属性去传递
    });
};
export const MShow = () => {
    return request({
        url: '/api/Good/UShow',
        method: 'get',
    });
};
export const MShows = () => {
    return request({
        url: '/api/Good/MShow',
        method: 'get',
    });
};
export const MAdd = model => {
    return request({
        url: '/api/Good/MAdd', model,
        method: 'post',
        data: model //post请求使用data属性去传递
    });
};